package com.lingsui.mode.strategy;

/**
 * User: caoping
 * Date: 2018/9/2 上午9:49
 */
public class MallardDuck extends  Duck{


    public MallardDuck() {

        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    public void display() {
        System.out.println("I'm a real Mallard duck");
    }
}
